﻿using System;
using System.Collections.Generic;


class CompareCharArrays
{
    static void Main()
    {
        try
        {
            List<char> array = new List<char>{ 'a', 'b', 'c', 'd', 'e', 'f' };
            List<char> array2 = new List<char> { 'a', 'b', 'c', 'D', 'E', 'F' };
            

            for (int index = 0; index < array.Capacity; index++)
            {
                if (array[index] != array2[index])
                {
                    Console.WriteLine("{0} != {1}", array[index], array2[index]);
                }
                else
                {
                    Console.WriteLine("{0} == {1}", array[index], array2[index]);
                }
            }

        }
        catch (Exception)
        {
            Console.WriteLine("Wrong data!");
            return;
        }

    }
}